<?php
/**
 * TOP API: taobao.tbk.shop.get request
 * 
 * @author auto create
 * @since 1.0, 2016.07.25
 */
class TbkOrderGetRequest
{
	
	
	/** 
	 * 需返回的字段列表
	 **/
	private $fields;
	
	/** 
	 * 第几页，默认1，1~100
	 **/
	private $pageNo;
	
	/** 
	 * 页大小，默认20，1~100
	 **/
	private $pageSize;
	private $start_time;
	private $span;
	private $tk_status;
	private $order_query_type;
	private $q;
	private $apiParas = array();
	
	public function setStartTime($start_time)
	{
		$this->start_time = $start_time;
		$this->apiParas["start_time"] = $start_time;
	}

	public function getStartTime()
	{
		return $this->start_time;
	}
	public function setSpan($span)
	{
		$this->span = $span;
		$this->apiParas["span"] = $span;
	}

	public function getSpan()
	{
		return $this->span;
	}
	public function setTkStatus($tk_status)
	{
		$this->tk_status = $tk_status;
		$this->apiParas["tk_status"] = $tk_status;
	}

	public function getTkStatus()
	{
		return $this->tk_status;
	}
	public function setQ($q)
	{
		$this->q = $q;
		$this->apiParas["q"] = $q;
	}

	public function getQ()
	{
		return $this->q;
	}
	public function setOrderQueryType($order_query_type)
	{
		$this->order_query_type = $order_query_type;
		$this->apiParas["order_query_type"] = $order_query_type;
	}

	public function getOrderQueryType()
	{
		return $this->order_query_type;
	}
	public function setFields($fields)
	{
		$this->fields = $fields;
		$this->apiParas["fields"] = $fields;
	}

	public function getFields()
	{
		return $this->fields;
	}
	public function setPageNo($pageNo)
	{
		$this->pageNo = $pageNo;
		$this->apiParas["page_no"] = $pageNo;
	}

	public function getPageNo()
	{
		return $this->pageNo;
	}

	public function setPageSize($pageSize)
	{
		$this->pageSize = $pageSize;
		$this->apiParas["page_size"] = $pageSize;
	}

	public function getPageSize()
	{
		return $this->pageSize;
	}
	public function getApiMethodName()
	{
		return "taobao.tbk.order.get";
	}
	
	public function getApiParas()
	{
		return $this->apiParas;
	}
	
	public function check()
	{
		
		RequestCheckUtil::checkNotNull($this->fields,"fields");
		RequestCheckUtil::checkNotNull($this->q,"q");
	}
	
	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
